/* 
 * File:   test_ssl.cpp
 * Author: kevin
 *
 * Created on March 12, 2011, 4:25 PM
 */

#include <cstdlib>
#include <iostream>
#include "sslvsion.h"
#include "log.h"
#include "location.h"
using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {
    Log *l=new Log("T_SSL");
    l->stuur("init");
    cout<<"starting test main SSL_vision! \n";
    sslvision ssl;
    ssl.start();
    cout<<"out of it\n";
    //create location with ball id
    Location *testl = new Location(0);
    testl->setXY(0,0);
    ssl.addObserver(*testl);

    //test location robot blauw 0
    Location *testl1 = new Location(1);
    testl1->setXY(0,0);
    ssl.addObserver(*testl1);

    while(1)
    {
        sleep(1);
        printf("bal loc x: %d y: %d \n",testl->getX(),testl->getY());
        printf("robot loc x: %d y: %d \n",testl1->getX(),testl1->getY());
    }
    return 0;
}

